/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.asdtiang.study.aop;

/**
 *
 * @author Administrator
 */
public class Test {

    public static void main(String args[]) {
//        IHello hello = new HelloProxy(new Hello());
//        hello.sayHello("asdtiang");
//        IHello hello1 = new Hello();
//        hello1.sayHello("asdtiang ,no proxy");
        IHello hello2 = (IHello) new DynaProxyHello().bind(new Hello(),new LoggerOperation());
        hello2.sayGoogBye("Double J");
        hello2.sayHello("Double J");

    }
}
